<!DOCTYPE HTML>
<html lang="en">
	<head>
		<meta charset="UTF-8">
		<title>登录页面</title>
		<?php echo css("css/login.css");
                       echo js("js/jquery.js");
                ?>
	</head>
	<body>
	 <div class="login">
	  <div class="login_top">艺辰智能吊顶</div>
	  <div class="login_from">
	  		<div class="login_user"><img src="../theme/default/images/login_user.jpg" width="105" height="105" /></div>
	    	<div class="login_line"><img src="../theme/default/images/login_line.png" width="1" height="206" /></div>
	    	<div class="control-group">
	    		<form method="post">
				<div  class="error-box">
	                            <div class="logo-error" style="display:block;">
	                               <?php echo $error_str; ?> 
	                            </div>
	                        </div>
							
	    					<ul>
								<li> 
								<label for="user_name">用户名：</label>
								<input id="user_name" type="text" name="user_name" maxlength="30"/>
								</li> 
								<li> 
							   <label for="password">密&nbsp;&nbsp;&nbsp;码：</label>
	                           <input id="password" type="password" name="password" maxlength="30"/>
								</li>
                                                                <?php
                                                                    if($send_sms_isshow){
                                                                ?>
								 <li> 
								<label for="username">验证码：</label>
								<input id="username" type="text" name="check_sms" maxlength="30"/>
								</li>  
	                                                        <?php
                                                                    }
                                                                ?>
							</ul>
					
					        <div class="form-actions"> 
					          <button type="submit"  class="fl">登 录</button><div class="fl code"><a href="javascript:send_sms()">获取验证码</a></div></div>
	                        
	                		</form>     
	    	</div>
	  </div>
	  <div class="login_foot"></div>
	  <div class="login_projection"></div>
	 </div>
            <script type="text/javascript">
    function send_sms(){
        var name =$("#user_name").val();
        if(!name){
            alert("用户名不能为空");
        }else{
            $.post("<?php echo base_url("sz_admin/login/ajax_by_system_send_message");?>",
            {user_name :name},function(re){
                if(re){
                 alert("短信发送成功！")
                }
                }
            )
        }
    }
</script>
</body>

</html>
